package com.alongstudio.account.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 字典类型，与DictionaryContent一起，用于维护字典。
 * 
 * @ClassName: DictionaryType
 * @Description:
 * @author 安陈琳
 * @date Nov 30, 2011 4:44:37 PM
 * 
 */
@Entity
@Table(name = "tbl_dict_type")
public class DictionaryType {
	@Id
	@Column(name = "id", length=32)
	@GeneratedValue(generator = "identityGenerator")
	@GenericGenerator(name = "identityGenerator", strategy = "com.alongstudio.account.commons.utils.IdentityGenerator")
	private String id;
	@Column(name = "type_name", length = 50)
	private String typeName;
	@Column(name = "sort_num")
	private Integer sortNum;
	@Column(length = 20)
	private String code;
	@Column(length = 200)
	private String remark;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public Integer getSortNum() {
		return sortNum;
	}

	public void setSortNum(Integer sortNum) {
		this.sortNum = sortNum;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
